#include<stdio.h>
#include<stdlib.h>
int main() {
    freopen("sort3.in","r",stdin);
    //freopen("sort3.out","w",stdout);
    int a,b,c;
    int min,mid,max;
    while(3==scanf("%d%d%d",&a,&b,&c)) {
        min=a;
        if(b<min)min=b;
        if(c<min)min=c;
        max=a;
        if(b>max)max=b;
        if(c>max)max=c;
        mid=(a+b+c)-min-max;

        printf("%d %d %d\n",min,mid,max);
    }
    return 0;
}
